package com.lagou.assignment.model;

import java.util.Date;

public class Student {
    private int id;
    private int sid;
    private String sname;
    private String sex;
    private String birthday;
    private String email;
    private String comment;

    public Student() {
    }

    public Student(int sid, String sname, String sex, String birthday, String email, String comment) {
        this.sid = sid;
        this.sname = sname;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
    }

    public Student(int id, int sid, String sname, String sex, String birthday, String email, String comment) {
        this.id = id;
        this.sid = sid;
        this.sname = sname;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    //"id"
    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"sid\":" + sid +
                ", \"sname\":'" + sname + '\'' +
                ", \"sex\":'" + sex + '\'' +
                ", \"birthday\":'" + birthday +
                "', \"email\":'" + email + '\'' +
                ", \"comment\":'" + comment + '\'' +
                '}';
    }

}
